class Twoclassification {
  int status;
  String message;
  ClassificationData data;

  Twoclassification({this.status, this.message, this.data});

  Twoclassification.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    message = json['message'];
    data = json['data'] != null ? new ClassificationData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    data['message'] = this.message;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class ClassificationData {
  List<GoodData> goodData;
  int totalCount;

  ClassificationData({this.goodData, this.totalCount});

  ClassificationData.fromJson(Map<String, dynamic> json) {
    if (json['goodData'] != null) {
      goodData = new List<GoodData>();
      json['goodData'].forEach((v) {
        goodData.add(new GoodData.fromJson(v));
      });
    }
    totalCount = json['totalCount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.goodData != null) {
      data['goodData'] = this.goodData.map((v) => v.toJson()).toList();
    }
    data['totalCount'] = this.totalCount;
    return data;
  }
}

class GoodData {
  int goodsId;
  String coverImg;
  int categoryId1;
  int categoryId2;
  int categoryId3;
  int categoryId4;
  int goodsType;
  String goodsName;
  String goodsNo;
  int stockNum;
  String goodsModel;
  String marketPrice;
  String price;
  String unit;
  String goodsDetail;
  int shelfStatus;
  String shelfTime;

  GoodData(
      {this.goodsId,
      this.coverImg,
      this.categoryId1,
      this.categoryId2,
      this.categoryId3,
      this.categoryId4,
      this.goodsType,
      this.goodsName,
      this.goodsNo,
      this.stockNum,
      this.goodsModel,
      this.marketPrice,
      this.price,
      this.unit,
      this.goodsDetail,
      this.shelfStatus,
      this.shelfTime});

  GoodData.fromJson(Map<String, dynamic> json) {
    goodsId = json['goods_id'];
    coverImg = json['cover_img'];
    categoryId1 = json['category_id1'];
    categoryId2 = json['category_id2'];
    categoryId3 = json['category_id3'];
    categoryId4 = json['category_id4'];
    goodsType = json['goods_type'];
    goodsName = json['goods_name'];
    goodsNo = json['goods_no'];
    stockNum = json['stock_num'];
    goodsModel = json['goods_model'];
    marketPrice = json['market_price'];
    price = json['price'];
    unit = json['unit'];
    goodsDetail = json['goods_detail'];
    shelfStatus = json['shelf_status'];
    shelfTime = json['shelf_time'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['goods_id'] = this.goodsId;
    data['cover_img'] = this.coverImg;
    data['category_id1'] = this.categoryId1;
    data['category_id2'] = this.categoryId2;
    data['category_id3'] = this.categoryId3;
    data['category_id4'] = this.categoryId4;
    data['goods_type'] = this.goodsType;
    data['goods_name'] = this.goodsName;
    data['goods_no'] = this.goodsNo;
    data['stock_num'] = this.stockNum;
    data['goods_model'] = this.goodsModel;
    data['market_price'] = this.marketPrice;
    data['price'] = this.price;
    data['unit'] = this.unit;
    data['goods_detail'] = this.goodsDetail;
    data['shelf_status'] = this.shelfStatus;
    data['shelf_time'] = this.shelfTime;
    return data;
  }
}